package com.eorchis.module.newsuserlink.ui.commond;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import org.hibernate.validator.constraints.NotBlank;
import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommonField;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.news.domain.News;
import com.eorchis.module.newsuserlink.domain.NewsUserLink;
import com.eorchis.module.reply.domain.Reply;


/**
 * Title: NewsUserLinkValidCommond<br>
 * Description: 消息用户关联表ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author RongSL
 * @createDate 2016-05-06
 * @version $Revision$
 */
public class NewsUserLinkValidCommond implements ICommond,ICommonField {
	
	private NewsUserLink newsUserLink;
	
	public NewsUserLinkValidCommond(){
		newsUserLink = new NewsUserLink();
	}
	
	public NewsUserLinkValidCommond(NewsUserLink newsUserLink){
		this.newsUserLink = newsUserLink;
	}

	public Serializable getEntityID() {
		return newsUserLink.getNewsUserId();
	}

	@Override
	public IBaseEntity toEntity() {
		return newsUserLink;
	}

	/**
	 * 获取消息管理用户ID
	 */	
	@NotBlank
	public String getNewsUserId() {
		return newsUserLink.getNewsUserId();
	}
	/**
	 * 设置消息管理用户ID
	 */		
	public void setNewsUserId(String newsUserId) {
		newsUserLink.setNewsUserId(newsUserId);
	}
	/**
	 * 获取读取状态
	 */	
	public Integer getReadState() {
		return newsUserLink.getReadState();
	}
	/**
	 * 设置读取状态
	 */		
	public void setReadState(Integer readState) {
		newsUserLink.setReadState(readState);
	}
	/**
	 * 获取回复状态
	 */	
	public Integer getReplyState() {
		return newsUserLink.getReplyState();
	}
	/**
	 * 设置回复状态
	 */		
	public void setReplyState(Integer replyState) {
		newsUserLink.setReplyState(replyState);
	}
	/**
	 * 获取显示状态
	 */	
	public Integer getReceiveLookState() {
		return newsUserLink.getReceiveLookState();
	}
	/**
	 * 设置显示状态
	 */		
	public void setReceiveLookState(Integer receiveLookState) {
		newsUserLink.setReceiveLookState(receiveLookState);
	}
	/**
	 * 获取消息ID
	 */	
	public News getNewsId() {
		return newsUserLink.getNews();
	}
	/**
	 * 设置消息ID
	 */		
	public void setNewsId(News news) {
		newsUserLink.setNews(news);
	}
	/**
	 * 获取消息回复
	 */	
	public Set<Reply> getReply() {
		return newsUserLink.getReply();
	}
	/**
	 * 设置消息回复
	 */		
	public void setReply(Set<Reply> reply) {
		newsUserLink.setReply(reply);
	}
	
	public Date getCreateDate() {
		return newsUserLink.getCreateDate();
	}

	public void setCreateDate(Date createDate) {
		newsUserLink.setCreateDate(createDate);
	}

	public Integer getActiveState() {
		return newsUserLink.getActiveState();
	}

	public void setActiveState(Integer activeState) {
		newsUserLink.setActiveState(activeState);
	}
	
	public String getUserId() {
		return newsUserLink.getUserId();
	}
	
	public void setUserId(String userId) {
		newsUserLink.setUserId(userId);
	}

}
